import pytesseract
from PIL import Image
import time
for i in range(1):
        #print(time.time())
        im1 = Image.open('D:\\python_file\\monkeyrunner\\1.png')
        code1 = pytesseract.image_to_string(im1,lang="chi_sim")
        #print(time.time())
        f=open("D:\\python_file\\ocr_test\\result1.txt","a")
        f.write("%s"%code1+','+'\n')
        f.close()
        print(code1)
